package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * EipQuestionInfoId entity. @author MyEclipse Persistence Tools
 */

public class EipQuestionInfoId implements java.io.Serializable {

	// Fields

	private Integer qid;
	private String questionTitle;
	private String questionContent;
	private String questionPersonName;
	private Timestamp questionTime;
	private Boolean questionStatus;
	private Boolean isDel;
	private String answerName;
	private String answerContent;
	private Timestamp answerTime;
	private Integer qtype;
	private String tel;
	private Boolean isShow;

	// Constructors

	/** default constructor */
	public EipQuestionInfoId() {
	}

	/** minimal constructor */
	public EipQuestionInfoId(Integer qid) {
		this.qid = qid;
	}

	/** full constructor */
	public EipQuestionInfoId(Integer qid, String questionTitle,
			String questionContent, String questionPersonName,
			Timestamp questionTime, Boolean questionStatus, Boolean isDel,
			String answerName, String answerContent, Timestamp answerTime,
			Integer qtype, String tel, Boolean isShow) {
		this.qid = qid;
		this.questionTitle = questionTitle;
		this.questionContent = questionContent;
		this.questionPersonName = questionPersonName;
		this.questionTime = questionTime;
		this.questionStatus = questionStatus;
		this.isDel = isDel;
		this.answerName = answerName;
		this.answerContent = answerContent;
		this.answerTime = answerTime;
		this.qtype = qtype;
		this.tel = tel;
		this.isShow = isShow;
	}

	// Property accessors

	public Integer getQid() {
		return this.qid;
	}

	public void setQid(Integer qid) {
		this.qid = qid;
	}

	public String getQuestionTitle() {
		return this.questionTitle;
	}

	public void setQuestionTitle(String questionTitle) {
		this.questionTitle = questionTitle;
	}

	public String getQuestionContent() {
		return this.questionContent;
	}

	public void setQuestionContent(String questionContent) {
		this.questionContent = questionContent;
	}

	public String getQuestionPersonName() {
		return this.questionPersonName;
	}

	public void setQuestionPersonName(String questionPersonName) {
		this.questionPersonName = questionPersonName;
	}

	public Timestamp getQuestionTime() {
		return this.questionTime;
	}

	public void setQuestionTime(Timestamp questionTime) {
		this.questionTime = questionTime;
	}

	public Boolean getQuestionStatus() {
		return this.questionStatus;
	}

	public void setQuestionStatus(Boolean questionStatus) {
		this.questionStatus = questionStatus;
	}

	public Boolean getIsDel() {
		return this.isDel;
	}

	public void setIsDel(Boolean isDel) {
		this.isDel = isDel;
	}

	public String getAnswerName() {
		return this.answerName;
	}

	public void setAnswerName(String answerName) {
		this.answerName = answerName;
	}

	public String getAnswerContent() {
		return this.answerContent;
	}

	public void setAnswerContent(String answerContent) {
		this.answerContent = answerContent;
	}

	public Timestamp getAnswerTime() {
		return this.answerTime;
	}

	public void setAnswerTime(Timestamp answerTime) {
		this.answerTime = answerTime;
	}

	public Integer getQtype() {
		return this.qtype;
	}

	public void setQtype(Integer qtype) {
		this.qtype = qtype;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Boolean getIsShow() {
		return this.isShow;
	}

	public void setIsShow(Boolean isShow) {
		this.isShow = isShow;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipQuestionInfoId))
			return false;
		EipQuestionInfoId castOther = (EipQuestionInfoId) other;

		return ((this.getQid() == castOther.getQid()) || (this.getQid() != null
				&& castOther.getQid() != null && this.getQid().equals(
				castOther.getQid())))
				&& ((this.getQuestionTitle() == castOther.getQuestionTitle()) || (this
						.getQuestionTitle() != null
						&& castOther.getQuestionTitle() != null && this
						.getQuestionTitle()
						.equals(castOther.getQuestionTitle())))
				&& ((this.getQuestionContent() == castOther
						.getQuestionContent()) || (this.getQuestionContent() != null
						&& castOther.getQuestionContent() != null && this
						.getQuestionContent().equals(
								castOther.getQuestionContent())))
				&& ((this.getQuestionPersonName() == castOther
						.getQuestionPersonName()) || (this
						.getQuestionPersonName() != null
						&& castOther.getQuestionPersonName() != null && this
						.getQuestionPersonName().equals(
								castOther.getQuestionPersonName())))
				&& ((this.getQuestionTime() == castOther.getQuestionTime()) || (this
						.getQuestionTime() != null
						&& castOther.getQuestionTime() != null && this
						.getQuestionTime().equals(castOther.getQuestionTime())))
				&& ((this.getQuestionStatus() == castOther.getQuestionStatus()) || (this
						.getQuestionStatus() != null
						&& castOther.getQuestionStatus() != null && this
						.getQuestionStatus().equals(
								castOther.getQuestionStatus())))
				&& ((this.getIsDel() == castOther.getIsDel()) || (this
						.getIsDel() != null
						&& castOther.getIsDel() != null && this.getIsDel()
						.equals(castOther.getIsDel())))
				&& ((this.getAnswerName() == castOther.getAnswerName()) || (this
						.getAnswerName() != null
						&& castOther.getAnswerName() != null && this
						.getAnswerName().equals(castOther.getAnswerName())))
				&& ((this.getAnswerContent() == castOther.getAnswerContent()) || (this
						.getAnswerContent() != null
						&& castOther.getAnswerContent() != null && this
						.getAnswerContent()
						.equals(castOther.getAnswerContent())))
				&& ((this.getAnswerTime() == castOther.getAnswerTime()) || (this
						.getAnswerTime() != null
						&& castOther.getAnswerTime() != null && this
						.getAnswerTime().equals(castOther.getAnswerTime())))
				&& ((this.getQtype() == castOther.getQtype()) || (this
						.getQtype() != null
						&& castOther.getQtype() != null && this.getQtype()
						.equals(castOther.getQtype())))
				&& ((this.getTel() == castOther.getTel()) || (this.getTel() != null
						&& castOther.getTel() != null && this.getTel().equals(
						castOther.getTel())))
				&& ((this.getIsShow() == castOther.getIsShow()) || (this
						.getIsShow() != null
						&& castOther.getIsShow() != null && this.getIsShow()
						.equals(castOther.getIsShow())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getQid() == null ? 0 : this.getQid().hashCode());
		result = 37
				* result
				+ (getQuestionTitle() == null ? 0 : this.getQuestionTitle()
						.hashCode());
		result = 37
				* result
				+ (getQuestionContent() == null ? 0 : this.getQuestionContent()
						.hashCode());
		result = 37
				* result
				+ (getQuestionPersonName() == null ? 0 : this
						.getQuestionPersonName().hashCode());
		result = 37
				* result
				+ (getQuestionTime() == null ? 0 : this.getQuestionTime()
						.hashCode());
		result = 37
				* result
				+ (getQuestionStatus() == null ? 0 : this.getQuestionStatus()
						.hashCode());
		result = 37 * result
				+ (getIsDel() == null ? 0 : this.getIsDel().hashCode());
		result = 37
				* result
				+ (getAnswerName() == null ? 0 : this.getAnswerName()
						.hashCode());
		result = 37
				* result
				+ (getAnswerContent() == null ? 0 : this.getAnswerContent()
						.hashCode());
		result = 37
				* result
				+ (getAnswerTime() == null ? 0 : this.getAnswerTime()
						.hashCode());
		result = 37 * result
				+ (getQtype() == null ? 0 : this.getQtype().hashCode());
		result = 37 * result
				+ (getTel() == null ? 0 : this.getTel().hashCode());
		result = 37 * result
				+ (getIsShow() == null ? 0 : this.getIsShow().hashCode());
		return result;
	}

}